package edu.zut.hb.software.train.WorklogManager.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import edu.zut.hb.software.base.service.impl.GenericManagerImpl;
import edu.zut.hb.software.train.WorklogManager.service.WorklogManager;
import edu.zut.hb.software.train.worklog.dao.WorklogDao;
import edu.zut.hb.software.train.worklog.domain.Worklog;




@Service("worklogManager")
public class WorklogManagerImpl extends GenericManagerImpl<Worklog, Long> implements WorklogManager {

	
	WorklogDao worklogDao;
	
	@Autowired
	public void setWorklogDao(WorklogDao worklogDao) {
		this.worklogDao = worklogDao;
		this.dao = this.worklogDao;
	}

	@Override
	public List<Worklog> getAll() {
		List<Worklog> all = this.worklogDao.findAll();
		if (logger.isInfoEnabled()) {
			logger.info("getAll() - List<Worklog> all={}", all); //$NON-NLS-1$
		}
		return all;
	}
 
}